Use the more portable `find -perm` syntax
authorGleb Kozyrev <gleb@gkoz.com>
Fri, 9 Oct 2015 14:43:12 +0000 (17:43 +0300)
committerGleb Kozyrev <gleb@gkoz.com>
Fri, 9 Oct 2015 14:47:22 +0000 (17:47 +0300)
This is an improvement of fd781a12 adopted by rustc in https://github.com/rust-lang/rust/commit/f001f9a7
See also #822

Makefile.in

index db8ccb65f30485f704e99e7fdc0b2c819ac5b6f7..bec356904b30930a9b949a2e195054d366d57aca 100644 (file)
@@ -105,7 +105,8 @@ style:
        sh tests/check-style.sh
 
 no-exes:
-       find $$(git ls-files) -perm +a+x -type f \
+       find $$(git ls-files) -type f \
+               \( -perm -u+x -or -perm -g+x -or -perm -o+x \) \
                -not -name configure -not -name '*.sh' -not -name '*.rs' \
                -not -wholename "*/rust-installer/*" | \
                grep '.*' \